if ("${CMAKE_INSTALL_CONFIG_NAME}" STREQUAL "Release" OR "${CMAKE_INSTALL_CONFIG_NAME}" STREQUAL "")
set(RR_BUILD_CONFIG_DIR "out")
elseif ("${CMAKE_INSTALL_CONFIG_NAME}" STREQUAL "RelWithDebInfo")
set(RR_BUILD_CONFIG_DIR "out_reldebug")
elseif ("${CMAKE_INSTALL_CONFIG_NAME}" STREQUAL "Debug")
set(RR_BUILD_CONFIG_DIR "out_debug")
else()
set(RR_BUILD_CONFIG_DIR "out")
endif()
message(STATUS "Running setup.py in @CMAKE_BINARY_DIR@/${RR_BUILD_CONFIG_DIR}/Python3")
execute_process(COMMAND @PYTHON3_EXECUTABLE@ setup.py install -f
--root=/ --prefix=$ENV{DESTDIR}@CMAKE_INSTALL_PREFIX@ @SETUPTOOLS_ARG_EXTRA@
--single-version-externally-managed
WORKING_DIRECTORY @CMAKE_BINARY_DIR@/${RR_BUILD_CONFIG_DIR}/Python3 RESULT_VARIABLE ret)
if(ret AND NOT ret EQUAL 0)
message(FATAL_ERROR "Python install failed")
endif()
